package cn.stylefeng.guns.modular.storage.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * <p>
 * 调拨出库表
 * </p>
 *
 * @author zhucx
 * @since 2021-12-02
 */
@TableName("storage_allocation_out")
@Data
public class StorageAllocationOut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 项目部id
     */
    @TableField("operate_id")
    private Integer operateId;

    /**
     * 项目部名称
     */
    @TableField("operate_name")
    private String operateName;

    /**
     * 调拨出库单号
     */
    @TableField("allocation_order_number")
    private String allocationOrderNumber;

    /**
     * 调出仓库id
     */
    @TableField("warehouse_out_id")
    private Integer warehouseOutId;

    /**
     * 调出仓库
     */
    @TableField("warehouse_out_name")
    private String warehouseOutName;

    /**
     * 调入仓库id
     */
    @TableField("warehouse_put_id")
    private Integer warehousePutId;

    /**
     * 调入仓库
     */
    @TableField("warehouse_put_name")
    private String warehousePutName;

    /**
     * 调拨时间
     */
    @TableField("allocation_time")
    private String allocationTime;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 备注
     */
    @TableField("note")
    private String note;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人员
     */
    @TableField("create_name")
    private String createName;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * v3
     */
    @TableField("v3")
    private String v3;

    /**
     * v4
     */
    @TableField("v4")
    private String v4;

    @Override
    public String toString() {
        return "StorageAllocationOut{" +
        "id=" + id +
        ", status=" + status +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", operateId=" + operateId +
        ", operateName=" + operateName +
        ", allocationOrderNumber=" + allocationOrderNumber +
        ", warehouseOutId=" + warehouseOutId +
        ", warehouseOutName=" + warehouseOutName +
        ", warehousePutId=" + warehousePutId +
        ", warehousePutName=" + warehousePutName +
        ", allocationTime=" + allocationTime +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", note=" + note +
        ", createTime=" + createTime +
        ", createName=" + createName +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", v3=" + v3 +
        ", v4=" + v4 +
        "}";
    }
}
